#-------------------------------------------------
#
# Project created by QtCreator 2018-06-17T22:32:42
#
#-------------------------------------------------

QT       -= core gui

TARGET = ejoy2d
TEMPLATE = lib

DEFINES += EJOY2D_LIBRARY

DESTDIR += ../../bin

# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    lib/dfont.c \
    lib/ejoy2dgame.c \
    lib/fault.c \
    lib/label.c \
    lib/lejoy2dcore.c \
    lib/lgeometry.c \
    lib/lmatrix.c \
    lib/lparticle.c \
    lib/lrenderbuffer.c \
    lib/lshader.c \
    lib/lsprite.c \
    lib/lutls.c \
    lib/matrix.c \
    lib/particle.c \
    lib/ppm.c \
    lib/renderbuffer.c \
    lib/scissor.c \
    lib/screen.c \
    lib/screenshot.c \
    lib/shader.c \
    lib/sprite.c \
    lib/spritepack.c \
    lib/texture.c \
    lib/render/carray.c \
    lib/render/log.c \
    lib/render/render.c

HEADERS += \
    lib/array.h \
    lib/dfont.h \
    lib/ejoy2d.h \
    lib/ejoy2dgame.h \
    lib/fault.h \
    lib/label.h \
    lib/lgeometry.h \
    lib/list.h \
    lib/lmatrix.h \
    lib/lrenderbuffer.h \
    lib/lutls.h \
    lib/material.h \
    lib/matrix.h \
    lib/opengl.h \
    lib/particle.h \
    lib/platform_print.h \
    lib/ppm.h \
    lib/renderbuffer.h \
    lib/scissor.h \
    lib/screen.h \
    lib/screenshot.h \
    lib/shader.h \
    lib/sprite.h \
    lib/spritepack.h \
    lib/texture.h \
    lib/render/blendmode.h \
    lib/render/block.h \
    lib/render/carray.h \
    lib/render/log.h \
    lib/render/render.h


INCLUDEPATH += ../lua
INCLUDEPATH += ./lib/
INCLUDEPATH += ./lib/render

LIBS += -L../../bin -llua

LIBS += -lopengl32

unix {
    target.path = /usr/lib
    INSTALLS += target
}

linux {
    LIBS += -lglew32
}

win32 {
    SOURCES += ./mingw/winfont.c
    LIBS += -lglew32.dll
    LIBS += -lgdi32
}
